﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MmsEdit.aspx.cs" Inherits="ZX.WebApp.Message.MmsEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link href="../Styles/base.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script src="../Scripts/CombinButton.js" type="text/javascript"></script>
    <link href="../Styles/default/calendar.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.calendar.js" type="text/javascript"></script>
    <script src="../Scripts/extend.validate.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/paginator/paginator-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/event-delegate/event-delegate-min.js"></script>
    <script src="cssjs/jquery1.7.2.js" type="text/javascript"></script>
    <script src="cssjs/jquery.easytabs.min.js" type="text/javascript"></script>
    <script src="cssjs/jquery.hashchange.min.js" type="text/javascript"></script>
    <link href="../Styles/extendTable.css" rel="stylesheet" type="text/css" />
    <link href="cssjs/message.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .tabck
        {
            width: 100%;
        }
        .tableContent
        {
            font-size: 12px;
        }
        .tableContent th
        {
            border: solid 1px #D4DBE2;
            font-weight: bold;
            background-color: #F2F8FF;
            white-space: nowrap;
            line-height: 28px;
            text-align: left;
            padding-left: 3px;
        }
        .tableContent td
        {
            border: solid 1px #D4DBE2;
            background-color: #F2F8FF;
            line-height: 28px;
            text-align: left;
            padding-left: 3px;
        }
        .textbox
        {
            border-bottom: black 1px solid;
            border-top-style: none;
            border-right-style: none;
            border-left-style: none;
            background-color: white;
            overflow: hidden;
            height: 100%;
            width: 98%;
        }
        .style6
        {
            border-bottom: black 1px solid;
            border-top-style: none;
            border-right-style: none;
            border-left-style: none;
            background-color: white;
            overflow: hidden;
            height: 100%;
            width: 98%;
        }
        .labmessage
        {
            color: Red;
        }

    .etabs { margin: 0; padding: 0; }
    .tab { display: inline-block; zoom:1; *display:inline; background: #eee; border: solid 1px #999; border-bottom: none; -moz-border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px 0 0; }
    .tab a { font-size: 14px; line-height: 2em; display: block; padding: 0 10px; outline: none; }
    .tab a:hover { text-decoration: underline; }
    .tab.active { background: #fff; padding-top: 6px; position: relative; top: 1px; border-color: #666; }
    .tab a.active { font-weight: bold; }
    .tab-container .panel-container { background: #fff; border: solid #666 1px; padding: 10px; -moz-border-radius: 0 4px 4px 4px; -webkit-border-radius: 0 4px 4px 4px; }
    .panel-container { margin-bottom: 10px; }
    
    .mtable
    {
       
    }
    .mtable .divcont
    {
        width: 240px; min-height: 420px; text-align: center;border: 1px solid #999;
    }
    .mtable .tearcont {
        width:96%; min-height:200px;
        }
  </style>

  <script type="text/javascript">
      $(document).ready(function () {
          $('#tab-container').easytabs();
      });
      var src = "";
      var nowid = "";
      function openupload(o) {
          nowid = o.id;
          var tit = jQuery("#hdffilepathname").val();
          if (tit == "") {
              alert("请先填写标题");
              jQuery("#txttitle").focus();
              return;
          }
          src = getUrl + "../Message/fileupload.aspx?r=" + Math.random() + "&types=" + nowid + "&title=" + tit;
          ShowDialog1(getSelected, id, src);
      }
      function chechezishunum(obj) { //labnums
          if (obj.value.length > 30)
              return;
          document.getElementById("labfiledaxiao").innerHTML = obj.value.length + " 个字";
      }
       </script>
</head>
<body class="yui-skin-sam">
    <form id="form1" class="formBuilderForm" runat="server">
    <div>
    </div>
    <div><asp:HiddenField ID="hdffilepathname" runat="server" />
            彩信标题:
            <asp:TextBox ID="txttitle" onKeyUp="chechezishunum(this);" style="width:250px;" runat="server">彩信标题</asp:TextBox>(限30个字，已录入<span id="sptitnum"></span>个)
        <asp:Button ID="btnreview" runat="server" Text="预览" />文件限K,现已有<asp:Label ID="labfiledaxiao" runat="server" Text=""></asp:Label>
        <asp:Button ID="btnsave" runat="server" Text="保存" onclick="btnsave_Click" />
        <div id="tab-container" class='tab-container'>
            <ul id="headul" class='etabs'>
                <li class='tab'><a href="#tabs1">第1帧</a></li>
                <li class='tab'><a href="#tabs2">第2帧</a></li>
                <li class='tab'><a href="#tabs3">第3帧</a></li>
                <li class='tab'><a href="#tabs4">第4帧</a></li>
                <li class='tab'><a href="#tabs5">第5帧</a></li>
                <li class='tab'><a href="#tabs6">第6帧</a></li>
                <li class='tab'><a href="#tabs7">第7帧</a></li>
                <li class='tab'><a href="#tabs8">第8帧</a></li>
                <li class='tab'><a href="#tabs9">第9帧</a></li>
                <li class='tab'><a href="#tabs10">第10帧</a></li>
            </ul>
            <div id="divcontent" class='panel-container'>
                          <div id="tabs1">
                    <table class="mtable" style="width:780px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent1" class="divcont">
                                    <img id="loadimg1" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath1" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt1" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs1" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_1" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />（支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td> <asp:TextBox ID="tbaudio1" Width="30px" ReadOnly="true" runat="server"></asp:TextBox><input id="btn_aud_1" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_1" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                                <br /><input id="btn_txt_1" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs2">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent2" class="divcont">
                                    <img id="loadimg2" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath2" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt2" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs2" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_2" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td> <asp:TextBox ID="tbaudio2" ReadOnly="true" Width="30px" runat="server"></asp:TextBox><input id="btn_aud_2" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_2" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                                <br /><input id="btn_txt_2" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs3">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent3" class="divcont">
                                    <img id="loadimg3" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath3" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt3" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs3" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_3" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio3" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_3" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_3" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_3" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs4">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent4" class="divcont">
                                    <img id="loadimg4" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath4" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt4" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs4" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_4" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td> <asp:TextBox ID="tbaudio4" ReadOnly="true" Width="30px" runat="server"></asp:TextBox><input id="btn_aud_4" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_4" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_4" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs5">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent5" class="divcont">
                                    <img id="loadimg5" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath5" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt5" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs5" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_5" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio5" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_5" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_5" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_5" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs6">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent6" class="divcont">
                                    <img id="loadimg6" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath6" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt6" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs6" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_6" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio6" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_6" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_6" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_6" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs7">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent7" class="divcont">
                                    <img id="loadimg7" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath7" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt7" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs7" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_7" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio7" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_7" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_7" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                                <br /><input id="btn_txt_7" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs8">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent8" class="divcont">
                                    <img id="loadimg8" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath8" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt8" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs8" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_8" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio8" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_8" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_8" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_8" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs9">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent9" class="divcont">
                                    <img id="loadimg9" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath9" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt9" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs9" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_9" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio9" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_9" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_9" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_9" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
          <div id="tabs10">
                    <table class="mtable" style="width:680px;">
                        <tr>
                            <td rowspan="4">
                                <div id="divcontent10" class="divcont">
                                    <img id="loadimg10" runat="server" style="width: 95%;" alt="" src="" />
                                    <asp:HiddenField id="hdfimgpath10" Value="" runat="server"/>
                                    <textarea class="tearcont" id="loadtxt10" runat="server" ></textarea>
                                </div>
                            </td>
                            <td colspan="2">
                                本帧播放时间<input runat="server" style="width:30px;" id="txtbbs10" type="text" value="5" />秒
                            </td>
                        </tr>
                        <tr>
                            <td style=" width:30px;">
                                图片
                            </td>
                            <td><input id="btn_pic_10" type="button" onclick="openupload(this)" value="点击浏览-->上传图片" />
                            （支持gif、jpg两种格式,单个图片不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                声音
                            </td>
                            <td><asp:TextBox ID="tbaudio10" ReadOnly="true" Width="30px" runat="server"></asp:TextBox> <input id="btn_aud_10" type="button" onclick="openupload(this)" value="点击浏览-->上传音频" />
                            （支持mid、amr两种格式,单个文件不能超过30K）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文字
                            </td>
                            <td>
                                <textarea id="con_txt_10" cols="60" onkeyup="keycopytext(this)" runat="server" rows="18"></textarea>
                               <br /> <input id="btn_txt_10" type="button" onclick="openupload(this)" 
                                    value="点击浏览-->上传文本" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>

    </div>
     <div id="dialog1" class="yui-pe-content">
            <div class="hd">
                请选择文件后上传</div>
            <div class="bd">
                <iframe id="EditUIWindow1" frameborder="0" src="" style="width: 100%; height: 100%;
                    margin: 0px; padding: 0px;"></iframe>
            </div>
   </div>
    </form>

</body>
<script  language="javascript" type="text/javascript">
    $(document).ready(function () {
        jQuery("#sptitnum").html(jQuery("#txttitle").val().length);

        //hdfimgpath1 loadimg1
        for (i = 1; i < 11; i++) {
            document.getElementById("loadimg" + i).src = jQuery("#hdfimgpath" + i).val();
        }
    });

    function keycopytext(o) {
        var sids = o.id.split('_');
        jQuery("#loadtxt" + sids[2]).val(o.value);
    }
    //选择对应的方法和ID
    var _fn, _id;
    function ShowDialog1(fn, id, src) {
        _fn = fn;
        _id = id;
        document.getElementById("EditUIWindow1").src = src;
        YAHOO.example.container.dialog1.show();
    }
    YAHOO.namespace("example.container");
    YAHOO.util.Event.onDOMReady(function () {
        var handleSubmit = function () {

            YAHOO.example.container.dialog1.hide();
            var sids = nowid.split('_');
            if (sids[1] == "pic") {
                jQuery("#loadimg" + sids[2]).get(0).src = jQuery(window.frames["EditUIWindow1"].document).find("#hdpath").val();
                jQuery("#hdfimgpath" + sids[2]).val(jQuery(window.frames["EditUIWindow1"].document).find("#hdpath").val());
            }
            else if (sids[1] == "txt") {
                jQuery("#loadtxt" + sids[2]).val(jQuery(window.frames["EditUIWindow1"].document).find("#hdpath").val());
                jQuery("#con_txt_" + sids[2]).val(jQuery(window.frames["EditUIWindow1"].document).find("#hdpath").val());
            }
            else {
                jQuery("#tbaudio" + sids[2]).val(jQuery(window.frames["EditUIWindow1"].document).find("#hdpath").val());
            }
            //操作父页面
            //alert(jQuery(window.frames["EditUIWindow1"].document).find("#hdpath").val());
        };
        var handleCancel = function () {
            this.cancel();
        };
        var handleSuccess = function (o) {
            var response = o.responseText;
            response = response.split("<!")[0];
            document.getElementById("resp").innerHTML = response;
        };
        var handleFailure = function (o) {
            alert("Submission failed: " + o.status);
        };
        YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("dialog1",
					            { width: "480px",
					                height: "150px",
					                fixedcenter: true,
					                visible: false,
					                draggable: true,
					                close: true,
					                autofillheight: "body",
					                constraintoviewport: true,
					                buttons: [{ text: "确定", handler: handleSubmit, isDefault: true },
								            { text: "取消", handler: handleCancel}]
					            });
        YAHOO.example.container.dialog1.callback = { success: handleSuccess, failure: handleFailure };
        YAHOO.example.container.dialog1.render();
    });


    function chechezishunum(obj) { //labnums
        document.getElementById("labnums").innerHTML = "已输入：" + obj.value.length + " 个字";
    }


</script>
</html>
